package entity;

import com.alibaba.fastjson.annotation.JSONField;

public class User {
    @JSONField(name = "idNumber")
    private String idNumber; //身份证号

    @JSONField(name = "userName")
    private String userName; //用户名

    @JSONField(name = "password")
    private String password; //密码

    @JSONField(name = "phone")
    private String phone; //联系电话

    @JSONField(name = "realName")
    private String realName; //真实姓名

    @JSONField(name = "belongPlace")
    private String belongPlace; //所属地

    public User(){}

    public User(String idNumber, String userName, String password, String phone, String realName, String belongPlace) {
        this.idNumber = idNumber;
        this.userName = userName;
        this.password = password;
        this.phone = phone;
        this.realName = realName;
        this.belongPlace = belongPlace;
    }

    public String getIdNumber() {
        return idNumber;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getBelongPlace() {
        return belongPlace;
    }

    public void setBelongPlace(String belongPlace) {
        this.belongPlace = belongPlace;
    }

    @Override
    public String toString() {
        return "User{" +
                "idNumber='" + idNumber + '\'' +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", phone='" + phone + '\'' +
                ", realName='" + realName + '\'' +
                ", belongPlace='" + belongPlace + '\'' +
                '}';
    }
}